package com.xbongbong.pro.linkupdate.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 关联更新
 * @author 吴峰
 * @version 1.0
 * @date 2019-02-15 11:18
 * @since 1.0
 **/
@Getter
@Setter
@ToString
public class LinkUpdateDTO extends BaseDTO {
    private static final long serialVersionUID = 6515075957998507683L;

    /**
     * 业务类型
     * @see com.xbongbong.saas.enums.XbbRefTypeEnum
     */
    @NotNull(message = "{dto.msg.linkUpdate.businessType.NotNull}")
    private Integer businessType;

    /**
     * saas标记
     * @see com.xbongbong.pro.enums.SaasMarkEnum
     */
    @NotNull(message = "{dto.msg.linkUpdate.saasMark.NotNull}")
    private Integer saasMark;

    /**
     * id
     */
    private Long id;

    /**
     * 名称
     */
    @NotBlank(message = "{dto.msg.linkUpdate.name.NotBlank}")
    private String name;
}
